<?php exit('404');?>
{include header}
<!-- ext.ext-header($ext) -->
<div class="content">
	<!-- ext.ext-top($ext) -->
	<div class="tip">一共<span>{$ext.count}</span>个扩展 <span> · </span> 已安装<span>{$ext.installCount}</span>个扩展 · <a href="javascript:SX.import()" class="red">导入扩展</a><!-- ext.ext-tip($ext) --></div>
	<!-- ext.ext-tip-bottom($ext) -->
	{if $ext.installList}
	<div class="title">已安装</div>
	<ul class="ext">
	{foreach $ext.installList}
		<li class="ext-uninstall">
			<div class="ext-icon"><img src="{$item.icon}"/></div>
			<div class="ext-info">
				<div class="ext-name">
					{$item.name} 
					<!-- ext.ext-operate1($item,$key) -->
					<a href="{url admin/ext/uninstall/$item.id}" class="ext-btn" onclick="return SX.confirm(this,'确实要卸载吗？')">卸载</a>
					<a href="{url admin/ext/download/$item.id}" download="{$item.id}.sx" class="tpl-btn bg-red">导出</a>
					<!-- ext.ext-operate3($item,$key) -->
				</div>
				<div class="ext-intro">{$item.intro}</div>
			</div>
		</li>
	{/foreach}
	</ul>
	{/if}
	{if $ext.notInstallList}
	<div class="title">未安装</div>
	<ul class="ext">
	{foreach $ext.notInstallList}
		<li class="ext-install">
			<div class="ext-icon"><img src="{$item.icon}"/></div>
			<div class="ext-info">
				<div class="ext-name">
					{$item.name}
					<a class="ext-btn" href="{url admin/ext/install/$item.id}">安装</a>
					<a href="{url admin/ext/delete/$item.id}" class="ext-btn bg-red" onclick="return SX.confirm(this,'确实要删除吗？删除不可恢复！')">删除</a>
					<a href="{url admin/ext/download/$item.id}" download="{$item.id}.sx" class="tpl-btn bg-red">导出</a>
				</div>
				<div class="ext-intro">{$item.intro}</div>
			</div>
		</li>
	{/foreach}
	</ul>
	{/if}
	<!-- ext.ext-bottom($ext) -->
</div>
<!-- ext.ext-footer($ext) -->
{include footer}